<include file="Public:header"/>

<div class="ShopContain">
	<div class="shopStep">
		<span class="Step01">浏览餐单<b>1</b></span>
		<span class="Step02">确认订餐内容<b>2</b></span>
		<span class="Step03 aon">结算并提交订单<b>3</b></span>
	</div>
<!--判断是否激活-->
     <div class="shoporder_tips">
	<!--判断是否为货到付款-->
	    <h1 class="st_tips"><span>感谢您，订单提交成功！</span></h1>
		<p>您的餐品预计在<span>{:date("Y-m-d H:i:s",($forminfo['ftime']+(45*60)))}</span>送达</p>
		<p>货到需付款<span>{$forminfo['fprice']}</span>元</p>
    </div>
    <div class="shop-Order-detailsBox">
		<div class="shop-Order-details">
			<div class="order-No_tips">
				<b class="shop_pbtn">订单详情<i class="up"></i></b>
				<span>订单号：{$forminfo['formnumber']}</span>
				<span>下单时间：{:date("Y-m-d H:i:s",$forminfo['ftime'])}</span>
			</div>    		
			<ul class="order-details-list">
				<li class="lione">
					<p>送餐地址：{$forminfo['address']}</p>
					<p>联系人：{$forminfo['username']}</p>
					<p>联系电话：{$forminfo['phone']}</p>
				</li>
				<li class="litwo">
					<p>订单金额：<b>￥{$forminfo['fprice']}</b></p>
					<p>支付方式：货到付款</p>
				</li>
				<li class="lithree">
					<p><strong>订单状态：已下单</strong></p>
					<p>您的餐品预计在{:date("Y-m-d H:i:s",($forminfo['ftime']+(45*60)))}送达</p>
				</li>
			</ul>
    		<div style="display: block;" class="order-details-box">
			<div class="order-details-Top"><span>订单详情</span></div>
				<div class="order-details-Cartcont">
					
					<table class="cart_table" cellpadding="0" cellspacing="0" width="100%">
					
						<tbody>
							<tr>
								<th>品名</th>
								<th>单价（元）</th>
								<th width="80">数量</th>
								<th>优惠方式</th>
								<th class="nobg" width="110">备注</th>
							</tr>
							
							<foreach name="foodsforminfo" item="vo">
								<tr>
									<td>
										<div class="car_img"><img src="{$vo['fpic']}"><i></i></div>
										<span class="cart_p_name">{$vo['name']}</span>
									</td>
									
									<td class="ta_center fa_15">￥{$vo['price']-$vo['sell']}</td>
									<td class="ta_center">{$vo['number']}</td>
									<td class="ta_center"><if condition="$vo['sell'] eq 0">无优惠<else />已优惠 {$vo['sell']*$vo['number']}</if></td>
									<td class="ta_center"><if condition="empty($forminfo['ask'])">无<else /> {$forminfo['ask']}</if></td>
								</tr>
							</foreach>

						</tbody>
					</table>
					
				</div>
				<div class="order-details-bt"></div>
			</div> 
		</div>
	</div>
</div>
<script type="text/javascript">
</script>
<include file="Public:footer"/>
